package com.copm.ifm.servers.sys.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.copm.ifm.base.basic.NameTag;
import com.copm.ifm.base.basic.annotation.GetName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 业务类型分页返回对象
 *
 * @author tp
 * @date 2021/1/25 15:21
 */
@Setter
@Getter
@ToString
public class SysBusinessTypeVO implements Serializable, NameTag {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("业务类型名称")
    private String name;

    @ApiModelProperty("业务类型编码")
    private String code;

    @ApiModelProperty("是否返回所有")
    private Boolean isAll;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("是否授权")
    private Integer isAuth;

    @ApiModelProperty("租户ID")
    private Long tenantId;

    @ApiModelProperty("是否删除 [0:未删除 1:已删除]")
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建人")
    @GetName
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改人")
    @GetName
    private Long updateBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("修改人名")
    private String updateByName;

    @ApiModelProperty("创建人名")
    private String createByName;
}
